/****************************************************************************
 * WiiSave_List Class
 * for SaveGame Manager GX
 * by dj_skual
 ***************************************************************************/
#ifndef _WIISAVE_LIST_H_
#define _WIISAVE_LIST_H_

#include <vector>
#include <string>

class WiiSave_List
{
	public:
		WiiSave_List(std::string url);
		~WiiSave_List();
		
		std::string GetTitle(int index);
		std::string GetSynopsis(int index);
		std::string GetRegion(int index);
		std::string GetFilename(int index);
		std::string GetDownloadLink(int index);
		int GetCount() const { return savetitle.size(); }
		
		int FilterList(std::string inputRegion);
		
	protected:
		bool ParseXML(const char * xmlfile);
		std::string CleanText(std::string in_text);
		void RemoveEntry(int ind);
		
		std::vector<std::string> savetitle;
		std::vector<std::string> synopsis;
		std::vector<std::string> region;
		std::vector<std::string> filename;
		std::vector<std::string> download_link;
};

#endif
